package com.woniuxy01;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 作者
 * @create 2025-06-17 9:47
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Student {
    private Integer sid;
    private String sname;
    private Integer age;
    public String email;
    public String phone;

    public void study(){
        System.out.println("study");
    }
    public void study(String course){
        System.out.println("study-"+course);
    }
    public void study(String course,int hours){
        System.out.println("study-"+course+"-"+hours);
    }

    private void sleep(){
        System.out.println("sleep");
    }

}
